package cn.tedu.appointment.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum StatusCode {
    SUCCESS(2000, "操作成功"),
    REGISTER_SUCCESS(2001, "注册成功"),
    LOGIN_SUCCESS(2002, "登录成功"),
    BOOKING_SUCCESS(2003, "预约成功"),

    NOT_LOGGED_IN(4000, "未登录"),
    NOT_REGISTERED(4001, "未注册"),
    INVALID_USERNAME_OR_PASSWORD(4002, "用户名或密码错误"),
    DATA_UNEXISTS(4003, "数据不存在"),

    OPERATION_FAILED(5000, "操作失败"),
    BOOKING_FAILED(5001, "预约失败"),
    INVALID_REQUEST_DATA(5002, "请求的数据有误"),
    REQUEST_DATA_NOT_FOUND(5003, "请求的数据不存在"),
    USERNAME_OCCUPIED(5004, "用户名被占用"),
    BOOKING_TIME_NOT_REACHED(5005, "预约时间未到"),
    WARD_FULL(5006, "病房已满"),
    BED_FULL(5007, "病床已满");


    //状态码、状态码描述
    private Integer code;
    private String msg;
}